import { request } from './base'
export default {
    //获取banner
    selectBannerList(data) {
        return request("assist/banner/selectBannerList", "post", data)
    },
    //交易市场财务概括
    marketCount(data) {
        return request("trade/index/market/count", "post", data)
    },
    //市场农产平的交易统计
    daysCropChar(companyId,cropId) {
        return request(`trade/index/market/daysCrop/char/${companyId}/${cropId}`, "get")
    },
    //统计详情, 作物收、卖等数据
    detailCount(data) {
        return request("trade/index/market/detail/count", "post", data)
    },
    //首页交易详情，成交订单统计
    tradeOrderCount(data) {
        return request("trade/index/market/detail/tradeOrderCount", "post", data)
    },
    //农户财务概括  
    farmerCount(data) {
        return request("trade/farmer/index/count", "post", data)
    },
    //农户交易过的农产品列表
    getFarmerCrops() {
        return request(`trade/farmer/index/getFarmerCrops`, "get")
    },
    //农产品销售量折线图
    getCropChar(cropId) {
        return request(`trade/farmer/index/getCropChar/${cropId}`, "get")
    },
    //农户统计详情
    countDetail(data) {
        return request("trade/farmer/index/countDetail", "post", data)
    },
}